﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WOITMList.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.WModel.WOITMList" %>

<form id="pagerForm" method="post" action="WModel/WOITMList.aspx">
<input type="hidden" name="ItemCode" value="<%=ItemCode %>" />
<input type="hidden" name="CardCode" value="<%=CardCode %>" />
<input type="hidden" name="AliasName" value="<%=AliasName %>" />
<input type="hidden" name="MachineType" value="<%=MachineType %>" />
<input type="hidden" name="U_KW" value="<%=U_KW %>" />
<input type="hidden" name="U_GW" value="<%=U_GW %>" />

<input type="hidden" name="orderField" value="<%=orderField %>" />
<input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="<%=numPerPage %>" />
</form>
<form id="form1" runat="server" method="post" action="WModel/WOITMList.aspx" onsubmit="return navTabSearch(this);">
<div class="pageHeader">
   <div class="searchBar">
       <table class="searchContent">
            <tr>
                <td>
                   物料：
                </td>
                <td>
                    <input type="text" name="ItemCode" class="autocomplete" value="<%=ItemCode %>" autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getoitmlist&showtype=101" swidth="300"/>
                </td>
                <td>
                   供应商：
                </td>
                <td>
                    <input type="text" name="AliasName" value="<%=AliasName %>" class="autocomplete"  value="" autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getsupplierlist&showtype=CardCode" swidth="300" showinputid="WOITMList_CardCode" />
                    <input  type="hidden" id="WOITMList_CardCode" name="CardCode" value="<%=CardCode %>" />
                </td>
                <td>
                    &nbsp;
                </td>
                <td>&nbsp;</td>
                <td rowspan="2">
                    <div class="subBar">
                        <ul>
                            <li>
                                <div class="buttonActive"><div class="buttonContent"><button type="submit">筛选</button></div></div>
                            </li>
                        </ul>
                    </div>
                </td>
            </tr>
            <tr>
                <td>机型:</td>
                <td>
                    <select name="MachineType">
                        <option value="" <%=MachineType==""?"selected":"" %>>请选择...</option>
                        <option value="U_55NSL001C" <%=MachineType=="U_55NSL001C"?"selected":"" %>>55NSL</option>
                        <option value="U_65NS001C" <%=MachineType=="U_65NS001C"?"selected":"" %>>65NS</option>
                        <option value="U_80NS001C" <%=MachineType=="U_80NS001C"?"selected":"" %>>80NS</option>
                        <option value="U_100NS001C" <%=MachineType=="U_100NS001C"?"selected":"" %>>100NS</option>
                        <option value="U_40NS001C" <%=MachineType=="U_40NS001C"?"selected":"" %>>40NS</option>
                    </select>
                </td>
                <td>库位:</td>
                <td><input type="text" name="U_KW" value="<%=U_KW %>" /></td>
                <td>工位:</td>
                <td><input type="text" name="U_GW" value="<%=U_GW %>" /></td>
            </tr>
        </table>
    </div>
</div>
<div class="pageContent">
     <div class="panelBar">
        <ul class="toolBar">
              <% if (HasPower(IHISCETeim.Web.Permission.修改))
              {%>
            <li><a class="edit" href="WModel/WOITMUpdate.aspx?itemcode={sid_user}" target="dialog" rel="WOITMUpdate" title="修改物料库位工位信息" max=false  mask=true  maxable=false  minable=false  resizable=false drawable=true  width="500" height="250"><span>修改</span></a></li>
          <%} %>
           <%-- <% if (HasPower(IHISCETeim.Web.Permission.导出))
             {%>
            <li><a class="add" href="UserModel/USupplerPartAddInput.aspx" target="dialog" title="提供件入库" rel="USupplerPartAddInput"><span>导出</span></a></li>
           <%} %>   --%>        
        </ul>
    </div>
   <asp:repeater id="rpMenu" runat="server">
        <HeaderTemplate>
        <table class="table" width="1250" layouth="138">
        <thead>
            <tr  >
                <th  orderField="ItemCode" class="asc" width="100">
                    物料号
                </th>
                <th orderField="ItemName" class="asc" width="120">
                    物料名称
                </th>              
                <th orderField="CardCode" class="asc" width="80">
                    供应商
                </th>              
                <th width="60" orderField="OnHand" class="asc">库存数量</th>
                <th width="40">单位</th>
                <th width="40" orderField="u_kw" class="asc">库位</th>                
                <th width="60" orderField="U_55NSL001C" class="asc">55NSL用量</th>
                <th width="80">55NSL工位</th>
                <th width="60" orderField="U_65NS001C" class="asc">65NS用量</th>
                <th width="80" >65NS工位</th>
                <th width="60" orderField="U_65NSL01C" class="asc">65NSL用量</th>
                <th width="80" >65NSL工位</th>
                <th width="60" orderField="U_80NS001C" class="asc">80NS用量</th>
                <th width="80" >80NS工位</th>
                <th width="60" orderField="U_100NS001C" class="asc">100NS用量</th>
                <th width="80" >100NS工位</th>
                 <th width="60" orderField="U_40NS001C" class="asc">35NS用量</th>
                <th width="80" >40NS工位</th>
                <th width="70"></th>                           
            </tr>
        </thead>
        <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr target="sid_user" rel="<%# Eval("ItemCode") %>">                 
				<td><%# Eval("ItemCode")%></td>
				<td><%# Eval("ItemName")%></td>               
				<td><%# Eval("AliasName")%></td>
				<td><%# Convert.ToDecimal(Eval("OnHand")).ToString("F2")%></td>          
                <td><%# Eval("InvntryUom")%></td> 
                <td ><%# Eval("u_kw")%></td>               
                <td><%# Convert.ToDecimal(Eval("U_55NSL001C")).ToString("F2")%></td>    
                <td ><%# Eval("u_gw_55NSL01C")%></td>   
                <td><%# Convert.ToDecimal(Eval("U_65NS001C")).ToString("F2")%></td> 
                 <td ><%# Eval("u_gw_65NS001C")%></td>  
                 <td><%# Convert.ToDecimal(Eval("U_65NSL01C")).ToString("F2")%></td> 
                 <td ><%# Eval("u_gw_65NSL01C")%></td>     
                <td><%# Convert.ToDecimal(Eval("U_80NS001C")).ToString("F2")%></td>  
                 <td ><%# Eval("u_gw_80NS001C")%></td>     
                <td><%# Eval("U_100NS001C")%></td>    
                 <td ><%# Eval("u_gw_100NS001C")%></td>   
                 <td><%# Eval("U_40NS001C")%></td>  
                 <td ><%# Eval("u_gw_40NS001C")%></td>
                <td>
                    <a  target="dialog"  title="[<%# Eval("ItemName")%>]出入库明细帐" href="WModel/WOITMDetailList.aspx?itemcode=<%# Eval("ItemCode") %>"  rel="WOITMDetailList" max=false  mask=true  maxable=false  minable=false  resizable=false drawable=true  width="900" height="350">出入库明细</a>
                </td>
			</tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody>
         </table>
        </FooterTemplate>
    </asp:repeater>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
               <%=SetnumPerPage() %>
            </select>
            <span>条，共<%=TotalCount%>条</span>
        </div>
        <div class="pagination" targettype="navTab" totalcount="<%=TotalCount%>" numperpage="<%=numPerPage %>"
            pagenumshown="10" currentpage="<%=pageNum %>">
        </div>
    </div>
</div>
</form>
